-- GENERATED SPELL FOR [Plagued Felbeast] --


function spell0_32392(pUnit, Event) --@Fel Flames,n/a--
pUnit:FullCastSpellOnTarget(38356,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32392', 5000, 1)
end

function spell1_32392(pUnit, Event) --@Infected Bite,n/a--
pUnit:FullCastSpellOnTarget(16128,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_32392', 0, 1)
end

function Sorts_32392(pUnit, Event)
local choix_sorts_32392 = math.random(0, 1)
if choix_sorts_32392 == 0 then
pUnit:RegisterEvent('spell0_32392', 1, 1)
end
if choix_sorts_32392 == 1 then
pUnit:RegisterEvent('spell1_32392', 1, 1)
end
end

function mob32392_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_32392', math.random(1500, 3000), 1)
end

function mob32392_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32392_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob32392_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(32392, 1, 'mob32392_Action')
RegisterUnitEvent(32392, 2, 'mob32392_Leave')
RegisterUnitEvent(32392, 3, 'mob32392_Kill')
RegisterUnitEvent(32392, 4, 'mob32392_Die')
